关于android系统不关屏设置

在 base/services/core/java/com/android/server/power/PowerManagerService.java文件中getScreenOffTimeoutLocked函数中添加如下内容

int nosleep = mScreenOffTimeoutSetting;
        Slog.i(TAG, "nosleep="+nosleep+" MaximumScreenoff="+mMaximumScreenOffTimeoutFromDeviceAdmin);
        if(nosleep  <  70000)  
       {  
        nosleep = mMaximumScreenOffTimeoutFromDeviceAdmin ;
        Slog.i(TAG,"666");
        return Math.max(nosleep, mMaximumScreenOffTimeoutFromDeviceAdmin);  
        } 

posted @ 2015-07-31 16:50  dyhui1992  阅读(497)  评论(0编辑  收藏  举报